package com.repair.repairSys.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.repair.common.annotation.Excel;
import com.repair.common.core.domain.BaseEntity;

/**
 * 维修用户对象 repair_users
 * 
 * @author repair
 * @date 2024-12-05
 */
public class RepairUsers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户唯一id */
    private String userId;

    /** 0 普通用户 1 工作人员 */
    @Excel(name = "0 普通用户 1 工作人员")
    private Long role;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 账号 */
    @Excel(name = "账号")
    private String account;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setRole(Long role) 
    {
        this.role = role;
    }

    public Long getRole() 
    {
        return role;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAccount(String account) 
    {
        this.account = account;
    }

    public String getAccount() 
    {
        return account;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("role", getRole())
            .append("name", getName())
            .append("phone", getPhone())
            .append("account", getAccount())
            .append("password", getPassword())
            .append("createTime", getCreateTime())
            .toString();
    }
}
